/**
 * @file boot.c
 * @brief 通用boot引导升级程序
 * @author wangh (wanghuan3037@fiberhome.com)
 * @version 1.0
 * @date 2021-03-08
 * @copyright Copyright (c) 2021  烽火通信
 */ 
#include "FreeRTOS.h"
#include "task.h"
#include "iap.h"

#undef LOG_LEVEL_
#define LOG_LEVEL_ 	LOG_LVL_DEBUG
#include "bsp_log.h"


void boot_task(void *para)
{
    log_i("boot start...\r\n");
//    vTaskEndScheduler();

    iap_upgrade();

    vTaskDelete( NULL );
}


void application_start(void)
{
    xTaskCreate( boot_task, "boot_task", 256, NULL, 13, NULL );
}



/*********** (C) COPYRIGHT 2021 FiberHome *****END OF FILE****/
